package com.atguigu.facade;

public class Popcorn {
    private static Popcorn instance;

    static {
        instance = new Popcorn();
    }

    public static Popcorn getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("popcorn on");
    }

    public void off() {
        System.out.println("popcorn off");
    }

    public void pop() {
        System.out.println("popcorn is popping");
    }
}
